package com.ecloud.gardensterminal.constant;

/**
 * @author Squbi
 */
public class ContentLevel {

    private ContentLevel() {
    }

    private static final String LOW = "低";
    private static final String SLIGHTLY_LOWER = "较低";
    private static final String MIDDLE = "中";
    private static final String HIGHER = "较高";
    private static final String HEIGHT = "高";


    public static String nitrogen(int num) {
        if (num < 30) {
            return LOW;
        } else if (num < 50) {
            return SLIGHTLY_LOWER;
        } else if (num < 80) {
            return MIDDLE;
        } else if (num < 100) {
            return HIGHER;
        } else {
            return HEIGHT;
        }
    }

    public static String phosphorus(int num) {
        if (num < 5) {
            return LOW;
        } else if (num < 10) {
            return SLIGHTLY_LOWER;
        } else if (num < 15) {
            return MIDDLE;
        } else if (num < 30) {
            return HIGHER;
        } else {
            return HEIGHT;
        }
    }

    public static String potassium(int num) {
        if (num < 30) {
            return LOW;
        } else if (num < 60) {
            return SLIGHTLY_LOWER;
        } else if (num < 100) {
            return MIDDLE;
        } else if (num < 160) {
            return HIGHER;
        } else {
            return HEIGHT;
        }
    }
}

